package com.skyable.common.constants.exception;

/**
 * @author GaoYuan
 * @date 2020/12/10 15:19
 * @desc 公共响应错误信息
 */
public class CommonExcpConstants {
    
    public static Integer ERROR_CODE = 500;
    public static String ERROR_MSG = "服务内部错误";

    public static Integer ERROR_CODE_SUCCESS = 200;
    public static String ERROR_MSG_SUCCESS = "响应成功";

    public static Integer ERROR_CODE_BAT_REQUEST = 400;
    public static String ERROR_MSG_BAT_REQUEST = "请求错误，请求参数异常";

    public static Integer ERROR_CODE_UNAUTHORIZED = 401;
    public static String ERROR_MSG_UNAUTHORIZED = "认证失败";

    public static Integer ERROR_CODE_FORBIDDEN = 403;
    public static String ERROR_MSG_FORBIDDEN = "没有权限";

    public static Integer ERROR_CODE_NOT_FOUNT = 404;
    public static String ERROR_MSG_NOT_FOUNT = "请求的资源不存在";

    public static Integer ERROR_CODE_METHOD_NOT_SUPPORTED = 405;
    public static String ERROR_MSG_METHOD_NOT_SUPPORTED = "不支持该类型的请求";

    public static Integer ERROR_CODE_UNSUPPORTED_MEDIA_TYPE = 415;
    public static String ERROR_MSG_UNSUPPORTED_MEDIA_TYPE = "不支持媒体类型";

    public static Integer ERROR_CODE_SERVICE_UNAVAILABLE = 503;
    public static String ERROR_MSG_SERVICE_UNAVAILABLE = "服务不可用";

    public static Integer ERROR_CODE_LACK_PARAM = 1001;
    public static String ERROR_MSG_LACK_PARAM = "缺少参数";

    public static Integer ERROR_CODE_REQUEST_FEIGN = 1002;
    public static String  ERROR_MSG_REQUEST_FEIGN = "请求接口失败";

}
